<ion-view title="仓库管理" show-tabs>

  <ion-nav-buttons side="right">
    <button class="button button-icon ion-android-add" ng-click="openModal()"></button>
  </ion-nav-buttons>

  <ion-content class="has-header">
    <ion-list can-swipe="listCanSwipe">
        <ion-item ng-repeat="warehouse in warehouses" href="#/warehouse-{{warehouse._id}}">
            <p>{{warehouse.name}}<small class="pull-right">保管员：{{warehouse.keeper_account}}</small></p>
            <ion-option-button class="button-positive" ng-click="edit(warehouse)">更新</ion-option-button>
    		    <ion-option-button class="button-assertive" ng-click="delete(warehouse)">删除</ion-option-button>
    		<!-- store.splice($index, 1) -->
        </ion-item>
    </ion-list>
    <p class="padding-top text-center dark2">操作 : 左滑列表项可更新或删除 </p>
  </ion-content>
</ion-view>
 